<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>文件操作演示</title>
</head>

<body>
  <input type="file" id="file1">
  <span id="sp1"></span>
  <hr>

  <button id="btn2">浏览文件...</button>
  <span id="sp2"></span>

  <hr>

  <button id="btn3">公用方法浏览文件...</button>
  <span id="sp3"></span>
  <input type="text" id="txtFileinfo" placeholder="文件描述">
  <button id="btn4">上传文件</button>

  <script src="./js/file-demo.js" type="module"></script>

</body>

</html>